<template>
  <div class="login-box">
    <!-- 导航栏 -->
    <van-nav-bar class="page-nav-bar" title="登录" />
    <!-- /导航栏 -->
    <!-- 登录表单 -->
<van-form>
  <van-field
    name="用户名"
    placeholder="用户名"
    :rules="[{ required: true, message: '请填写用户名' }]">
    <i slot="left-icon" class="toutiao toutiao-shouji"></i>
  </van-field>
  <van-field
    type="password"
    name="密码"
    placeholder="密码"
    :rules="[{ required: true, message: '请填写密码' }]">
    <i slot="left-icon" class="toutiao toutiao-yanzhengma"></i>
    <template #button>
    <van-button class="send-code" size="small" round>获取验证码</van-button>
    </template>
    </van-field>
  <div class="login-btn">
    <van-button class="btn" type="info" native-type="submit" block>登录</van-button>
  </div>
</van-form>
    <!-- /登录表单 -->
  </div>
</template>

<script>
export default {
  name: 'login',
  data () {
    return {

    }
  },

  created () {

  },

  methods: {

  }
}
</script>

<style scoped lang='less'>
.login-box {
  .toutiao {
      font-size: 37px;
  }
}
.send-code {
  width: 178px;
  height: 46px;
  font-size: 22px;
  color: #666;
  line-height: 46px;
  background-color: #EDEDED;
}
.login-btn {
//   width: 383px;
  padding: 53px 33px;
  .btn {
      background-color: #6db4fb;
      border: none;
  }
}
</style>
